home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 023a / fm40.zip / CONFIG.BAT < prev    next >
DOS Batch File  |  1990-01-28  |  2KB  |  31 lines

  1. ECHO OFF
  2. ECHO *************************************************************************
  3. ECHO *                   Printer Configuration Procedure.                    *
  4. ECHO *************************************************************************
  5. IF %1x == x GOTO USAGE
  6. IF NOT EXIST FM.EXE GOTO NOTFOUND
  7. IF NOT EXIST PRINTER.COM GOTO NOTFOUND
  8. IF NOT EXIST PRINTER.FRM GOTO NOTFOUND
  9. FM PRINTER %1
  10. PRINTER %1
  11. GOTO END
  12. :NOTFOUND
  13. ECHO *** ERROR:  File   FM.EXE, PRINTER.FRM, or PRINTER.COM   is missing ***
  14. GOTO END
  15. :USAGE
  16. ECHO *                                                                       *
  17. ECHO * The correct usage of this procedure is:                               *
  18. ECHO *                                                                       *
  19. ECHO *           CONFIG cnfigfil                                             *
  20. ECHO *                                                                       *
  21. ECHO * where 'cnfigfil' is the name of a printer configuration file such as  *
  22. ECHO * 'EPSON2.CFG'.  You must specify a file.  This file does not have to   *
  23. ECHO * exist as it will be created if it doesn't.  Choose a file name that   *
  24. ECHO * makes sense (one that is related to the printer you are configuring   *
  25. ECHO * and that you can remember).  All your modifications will be kept in   *
  26. ECHO * this file so you can use it again if you need to make further         *
  27. ECHO * configuration changes.                                                *
  28. ECHO *************************************************************************
  29. :END
  30. ECHO >NUL
  31.